const { getOrderWaiting_3, getAllOrder_3, modifyOrderStatus_3 } = require("../dao/ordersDao")

//待发货数据获取
module.exports.getOrderWaiting_2 = async function (data){
    let result = await getOrderWaiting_3(data);
    return result;
}

// 修改发货状态
module.exports.modifyOrderStatus_2 = async function(data){
    let result = await modifyOrderStatus_3(data);
    if(result.nModified){
        return true;
    }
    return false;
}

// 获取所有数据
module.exports.getAllOrder_2 = async function(data){
    let result = await getAllOrder_3(data);
    return result;
}